.class Lcom/netease/newsreader/activity/DetailPushPage$4;
.super Ljava/lang/Object;
.source "DetailPushPage.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/DetailPushPage;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/DetailPushPage;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/DetailPushPage;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    .line 3042
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    const/4 v6, 0x0

    .line 3047
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$58(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v4

    if-nez v4, :cond_1

    .line 3048
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$57(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3049
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$58(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v4

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 3050
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$40(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    if-eqz v4, :cond_0

    .line 3051
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$40(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/view/inputmethod/InputMethodManager;

    move-result-object v4

    iget-object v5, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v5}, Lcom/netease/newsreader/activity/DetailPushPage;->access$58(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/LinearLayout;

    move-result-object v5

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->getWindowToken()Landroid/os/IBinder;

    move-result-object v5

    invoke-virtual {v4, v5, v6}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    .line 3078
    :cond_0
    :goto_0
    return-void

    .line 3054
    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_2

    .line 3056
    :try_start_0
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$59(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/PopupWindow;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->isShowing()Z

    move-result v4

    if-eqz v4, :cond_3

    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$65(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/view/View;

    move-result-object v4

    if-ne v4, p1, :cond_3

    .line 3057
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$59(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/PopupWindow;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 3075
    :cond_2
    :goto_1
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4, p1}, Lcom/netease/newsreader/activity/DetailPushPage;->access$68(Lcom/netease/newsreader/activity/DetailPushPage;Landroid/view/View;)V

    goto :goto_0

    .line 3059
    :cond_3
    :try_start_1
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/HashMap;

    .line 3060
    .local v1, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    iget-object v4, v4, Lcom/netease/newsreader/activity/DetailPushPage;->location:[I

    invoke-virtual {p1, v4}, Landroid/view/View;->getLocationInWindow([I)V

    .line 3061
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$66(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/TextView;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "\u9876["

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v6, "v"

    invoke-virtual {v1, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "]"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 3062
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$66(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/TextView;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 3063
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$66(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/TextView;

    move-result-object v4

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setEnabled(Z)V

    .line 3064
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$67(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/TextView;

    move-result-object v4

    const-string v5, "p"

    invoke-virtual {v1, v5}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    .line 3065
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$59(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/PopupWindow;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/PopupWindow;->dismiss()V

    .line 3066
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/util/Tools;->getScreenWidth(Landroid/content/Context;)I

    move-result v4

    add-int/lit16 v2, v4, -0xf0

    .line 3067
    .local v2, x:I
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    iget-object v4, v4, Lcom/netease/newsreader/activity/DetailPushPage;->location:[I

    const/4 v5, 0x1

    aget v4, v4, v5

    add-int/lit8 v3, v4, -0x3c

    .line 3068
    .local v3, y:I
    iget-object v4, p0, Lcom/netease/newsreader/activity/DetailPushPage$4;->this$0:Lcom/netease/newsreader/activity/DetailPushPage;

    invoke-static {v4}, Lcom/netease/newsreader/activity/DetailPushPage;->access$59(Lcom/netease/newsreader/activity/DetailPushPage;)Landroid/widget/PopupWindow;

    move-result-object v4

    const/16 v5, 0x33

    const/16 v6, 0x50

    invoke-virtual {v4, p1, v5, v6, v3}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_1

    .line 3070
    .end local v1           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v2           #x:I
    .end local v3           #y:I
    :catch_0
    move-exception v0

    .line 3072
    .local v0, e:Ljava/lang/Exception;
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto/16 :goto_1
.end method
